'use strict';
/**
 * @params {}
 * @bussiness {作家专区}
 * @author JC
 * @date 2022-08-17
 * **/
const Service = require('egg').Service;
class Zone extends Service {
    async getAuthorZone(params) {
        try {
            let all = await this.app.mysql.select("novels_bulletin", {limit:params.limit, offset:params.offset})
            console.log(all, 11111)
            let siganl = await this.app.mysql.select("novels_bulletin", {where:{classes:params.classes},limit:params.limit,limit:params.limit})
            return {
                all,
                siganl
            }
        } catch (e) {
            return new Error('error')
        }
    }
}
module.exports = Zone;